/**
 * Created by kfyy035 on 2018/9/10.
 */
import request from '@/utils/request'

// 列表
export function accountList (data) {
	return request({
		url: '/manage/system/account-list',
		method: 'get',
		params: data
	})
}
// 根据id获取手机号
export function getMobile (data) {
	return request({
		url: '/backend/system/get-mobile',
		method: 'post',
		data
	})
}
// 远程搜索关键词
export function remoteList (data) {
	return request({
		url: '/manage/system/search-pull-list',
		method: 'post',
		data
	})
}
// 添加账号下的远程搜索
export function addRemoteList (data) {
	return request({
		url: '/backend/system/search-pull-list',
		method: 'post',
		data
	})
}
// 添加账号
export function addAccount (data) {
	return request({
		url: '/manage/system/add-account',
		method: 'post',
		data
	})
}
// 重置密码
export function resetPassword (data) {
	return request({
		url: '/manage/system/reset-account',
		method: 'post',
		data
	})
}
// 启用停用
export function accountStatus (data) {
	return request({
		url: '/manage/system/change-account-status',
		method: 'post',
		data
	})
}
// 编辑
export function updateAccount (data) {
	return request({
		url: '/manage/system/update-account',
		method: 'post',
		data
	})
}
// 修改密码
export function updatePassword (data) {
	return request({
		url: '/manage/login/change-password',
		method: 'post',
		data
	})
}
// 最后一次登录详情
export function lastLoginDetail (data) {
	return request({
		url: '/manage/system/get-last-login-info',
		method: 'post',
		data
	})
}
